<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        //$str1="abcdefg";
        //echo substr($str1,2,3);
        $str2="今天天气好";
       // echo mb_substr($str2,0,2,'utf-8');
        echo mb_strlen($str2,'utf-8');
        ?>
    </body>
</html>